package com.sunelec.service.Imp;

import com.sunelec.mapper.PowerMapper;
import com.sunelec.mapper.UsersMapper;
import com.sunelec.pojo.Power;
import com.sunelec.pojo.Users;
import com.sunelec.service.ShowInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: 郑明利
 * @Description:
 * @Date: Create in 18:49 2018/05/08
 * @Modified By:
 */
@Service
public class ShowInfoServiceImpl implements ShowInfoService{

    @Autowired
    private PowerMapper powerMapper;

    @Autowired
    private UsersMapper usersMapper;

    @Override
    public Power getPowerInfo(String powerId){
        return powerMapper.selectByPrimaryKey(powerId);
    }

    @Override
    public Users getUserInfo(String username){
        return usersMapper.selectByUsername(username);
    }
}
